﻿#pragma once


// CCompressDlg 对话框
typedef BOOL(*pMyCompressFunc)(char* pPath);
typedef BOOL(*pMyUnCompressFunc)(char* pPath);

class CCompressDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CCompressDlg)

public:
	CCompressDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CCompressDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CompressDlg };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
private:
	HINSTANCE hDll;//句柄
	pMyCompressFunc MyCompressFunc = NULL;    //函数指针
	pMyUnCompressFunc MyUnCompressFunc = NULL;//函数指针
	CString csPath;
	TCHAR filePath[MAX_PATH];
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton3();
	afx_msg void OnDropFiles(HDROP hDropInfo);
};
